package cn.edu.scau.cmi.houzhicong.combinationPattern.safetyPattern;

public abstract class SafetyComponent {
	
	protected SafetyComponent parent;
	protected String name;
	public SafetyComponent(String name) {
		this.name = name;
	}

	public SafetyComponent getParent() {
		return parent;
	}


	public void setParent(SafetyComponent parent) {
		this.parent = parent;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public abstract String display();

}
